package com.googlecode.continuity.plugin.rating.server.service;

import com.googlecode.continuity.core.client.ContinuityUser;
import com.googlecode.continuity.core.client.Message;

/**
 * RatingService
 *
 * @author Peter Schmitt <aragos@aragos.de>
 */
public interface RatingService {
  void setRating(ContinuityUser user, Message message, int rating);

  void setRating(int userId, int messageId, int rating);

  int getRating(ContinuityUser user, Message message);

  int getRating(int userId, int messageId);

  float getRatingAverage(Message message);

  float getRatingAverage(int messageId);

  int getRatingCount(int messageId);

  int getRatingCount(Message message);
}
